function get_date(sources){
    var date=new Date(sources);
    var year=date.getFullYear();
    var month=formatDate(date.getMonth()+1);
    var day= formatDate(date.getDate());
    return year+"-"+month+"-"+day;

}

function formatDate(val){

    if(val<10){
        return "0"+val;
    }
    return val;
}